package com.ruoyi.strategy.mapper;

import java.util.List;
import com.ruoyi.strategy.domain.Strategy;
import com.ruoyi.type.domain.Type;
import org.apache.ibatis.annotations.Param;

/**
 * strategyMapper接口
 *
 * @author sywc
 * @date 2025-01-09
 */
public interface StrategyMapper
{
    /**
     * 查询strategy
     *
     * @param id strategy主键
     * @return strategy
     */
    public Strategy selectStrategyById(@Param("id") Integer id);

    /**
     * 查询strategy列表
     *
     * @param strategy strategy
     * @return strategy集合
     */
    public List<Strategy> selectStrategyList(Strategy strategy);

    /**
     * 新增strategy
     *
     * @param strategy strategy
     * @return 结果
     */
    public int insertStrategy(Strategy strategy);

    /**
     * 修改strategy
     *
     * @param strategy strategy
     * @return 结果
     */
    public int updateStrategy(Strategy strategy);

    /**
     * 删除strategy
     *
     * @param id strategy主键
     * @return 结果
     */
    public int deleteStrategyById(@Param("id") Integer id);

    /**
     * 批量删除strategy
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStrategyByIds(Integer[] ids);

    public Type selectTypeByStrategyId(@Param("TypeId") Integer TypeId, @Param("isDeleted") Integer isDeleted);

    public List<Integer> selectTypeId(@Param("StrategyId") Integer StrategyId,@Param("isDeleted") Integer isDeleted);

    public Strategy selectStrategyByName(@Param("name") String name);


}
